#pragma once

#include "Physx.h"
#include "PhysxWorld.h"
#include "UserStream.h"
#include "IMesh.h"

class CookingInterface
{
public:
	CookingInterface(PhysxWorld* wd);
	~CookingInterface(void);	
	void ExtractMeshInfoAndCookTriangleMesh(IMesh* mesh,NxStream& stream, bool clearRamInfoAfter = true );

private:

	bool CookTriangleMesh(NxTriangleMeshDesc& desc,NxStream& stream)
	{		
		return world->GetCookingLib(true)->NxCookTriangleMesh(desc, stream);
	}	

private:
	PhysxWorld* world;

};
